import React from "react";
import ReactDOM from "react-dom";
import { HashRouter, Switch, Route, Link } from "react-router-dom";
import { routes } from "./router/index";
import Main from './App'
const App = function () {
  return (
    <div>
      hello React Mobile1
      <HashRouter>
        <Switch>
          <Route path="/" component={Main}></Route>
        </Switch>
      </HashRouter>
    </div>
  );
};
ReactDOM.render(<App />, document.getElementById("app"));
if (module.hot) {
  module.hot.accept(App, () => {
    ReactDOM.render(<App />, document.getElementById("app"));
  });
}
/**
 * Detected AppContainer unmount on module './src/index.js' update.
Did you use "hot(App)" and "ReactDOM.render()" in the same file?
"hot(App)" shall only be used as export.
Please refer to "Getting Started"
检测到AppContainer在模块'./src/index.js'上卸载。
你在同一个文件中使用了“hot(App)”和“ReactDOM.render()”吗?
“hot(App)”只能用于出口。
 */
